import request from "@/utils/request";

//查询盘点单列表
export function inventoryList(params) {
  return request({
    url: "/mes/inventory/info/list",
    method: "get",
    params,
  });
}


//查询盘点明细列表
export function inventoryDetailList(params) {
  return request({
    url: "/mes/inventory/info/inventoryDetailList",
    method: "get",
    params,
  });
}

//新增退库单
export function addInventory(data) {
  return request({
    url: "/mes/inventory/info",
    method: "post",
    data,
  });
}
//修改盘点单
export function updateInventory(data) {
  return request({
    url: "/mes/inventory/info",
    method: "put",
    data,
  });
}
// 查询盘点详情
export function getIdInventory(id) {
  return request({
    url: "/mes/inventory/info/" + id,
    method: "get",
  });
}
// 删除退库处理
export function delInventory(ids) {
  return request({
    url: "/mes/inventory/info/" + ids,

    method: "delete",
  });
}
//明细查询
export function detailsInventory(data) {
  return request({
    url: "/mes/inventory/info/Detail",
    method: "post",
    data,
  });
}

//盘点导出
export function exportInventory(data) {
  return request({
    url: "/mes/inventory/info/export",
    method: "post",
    data,
  });
}
